#include<iostream>
#include<cstdio>

using namespace std;

int main()
{
    double A, B;
    cin >> A;
    cin >> B;
    double average = (A * 3.5 + B * 7.5) / 11.0;
    cout << "MEDIA = ";
    printf("%.5lf", average);
    return 0;
}